<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="Entity.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
		List<Student> slist = new ArrayList<Student>();
		if (session.getAttribute("allStudents_session") != null) {
			slist = (List) session.getAttribute("allStudents_session");
			session.removeAttribute("allStudents_session");
		}
	%>
	<link rel="stylesheet"
		href="<%=request.getContextPath()%>/css/backstage.css" type="text/css"></link>
	<div class="header">
		<font size='6' color="#FF0000"><br />&emsp;&emsp;&emsp;学生信息管理</font>
	</div>
	<form action="../AdminControl/querystudent" method="post"
		name="student_search_form">
		<input style="float: right" type="submit" value="搜索" /> <input
			type="text" name="student_id" style="float: right" />
	</form>
	<table align="center" width="1300" border="1" class="mytable">
		<tr align="center">
			<td align="center" colspan="11">
				<h2>所有学生信息</h2>
			</td>
		</tr>
		<tr align="center">
			<td><b>学号</b></td>
			<td><b>姓名</b></td>
			<td><b>性别</b></td>
			<td><b>学院</b></td>
			<td><b>专业</b></td>
			<td><b>班级</b></td>
			<td><b>密码</b></td>
			<td colspan="2"><a href="../jsp/add_Student.jsp"
				style="color: #FFFFFF; text-decoration: none">添加学生</a></td>
		</tr>
		<%
		for(Student stu:slist){
		%>
			<tr>
				<td><%=stu.getStudent_id() %></td>
				<td><%=stu.getStudent_name() %></td>
				<td><%=stu.getStudent_sex() %></td>
				<td><%=stu.getStudent_dept() %></td>
				<td><%=stu.getStudent_major() %></td>
				<td><%=stu.getStudent_class() %></td>
				<td><%=stu.getStudent_pwd() %></td>
				<td><a
					href="../AdminControl/deletestudent/<%=stu.getStudent_id() %>"
					style="text-decoration: none">删除</a></td>
				<td><a
					href="../AdminControl/updatestudentView/<%=stu.getStudent_id() %>"
					style="text-decoration: none">修改</a></td>
			</tr>
			<%} %>
	</table>
</body>
</html>